//
//  XJSearchGoodsModel.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/4.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJSearchGoodsModel.h"

@implementation XJSearchGoodsModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"goodsId":@"id"};
}


- (NSString *)cover {
    if ([_cover hasPrefix:@"http"]) return _cover;
    
    NSString *wholeStr = [NSString stringWithFormat:@"http://static.zertone1.com/%@",_cover];
    
    return wholeStr;
}


- (NSString *)description
{
    NSArray *ptyArrr = @[@"market_price",@"price",@"goodsId",@"cover",@"name"];
    
    return    [[self dictionaryWithValuesForKeys:ptyArrr] description];
}
@end

